home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 75
/
MOBICLIC 75.ISO
/
pc
/
DATA
/
TCHATCHE
/
doggy75-84.cst
/
00071_Script_gestionnaires son
< prev
next >
Wrap
Text File
|
2005-06-13
|
3KB
|
116 lines
-- Gestionnaires langues gΘnΘraux
global nivSon,dernierSon,musEnCours
global pisteFondMascotte,langue
global laboActif,laboOk,laboH,laboV,pisteLabo
global interLangues,gInterface
global moduleUtilise,boutLect
on joueSonMP3 nom, n
if the paramCount=2 then
joueson nom,n
else
joueSon nom,3
end if
end joueSonMP3
on mascotteParle son
sprite(pisteFondMascotte+1).visible = 0
sprite(pisteFondMascotte+2).member = member("mascotteParle_" & suffixeLangue())
sprite(pisteFondMascotte+2).visible = 1
sound(3).pan = 60
joueson son & suffixeLangue()
end
on mascotteGagne son
sprite(pisteFondMascotte+1).visible = 0
sprite(pisteFondMascotte+2).member = member("mascotteGagne_" & suffixeLangue())
sprite(pisteFondMascotte+2).visible = 1
sound(3).pan = 60
joueson son & suffixeLangue()
end
on mascotteEchec son
sprite(pisteFondMascotte+1).visible = 0
sprite(pisteFondMascotte+2).member = member("mascotteEchec_" & suffixeLangue())
sprite(pisteFondMascotte+2).visible = 1
sound(3).pan = 60
joueson son & suffixeLangue()
end
on suffixeLangue
case langue of
1: return "a"
2: return "b"
3: return "c"
4: return "d"
end case
end
-- ouverture du laboratoire de langues
on anciennepaletteLabo
if soundBusy(1) then
musEnCours=sound(1).member
sound(1).stop()
end if
boutLect = 0
-- dΘtection du module de la palette labo α utiliser -----------
nomFilm = _movie.Name
if nomFilm contains "tcha01" or nomFilm contains "tcha03" then
moduleUtilise = "voc"
end if
if nomFilm contains "tcha02" then
moduleUtilise = "dia"
end if
if nomFilm contains "tcha04" then
moduleUtilise = "jeu"
end if
-- affichage de la palette labo --------------------------------
laboActif = 1
window().new("paletteLabo")
window("paletteLabo").fileName = _movie.path & "paletteLabo"
L = 342 -- largeur de la fenΩtre
H = 332 -- hauteur de la fenΩtre
if voidP(laboH) then laboH=((640-L)/2) + _movie.stage.rect[1]
if voidP(laboV) then laboV=((480-H)/2) + _movie.stage.rect[2]
window("paletteLabo").rect = rect(laboH,laboV,laboH+L,laboV+H-1)
window("paletteLabo").title = "Labo"
window("paletteLabo").open()
end
on lanceLabo
_movie.go(1,"Tcha05")
end
on repriseMusique
-- if laboActif<>1 and soundBusy(1)=0 and musEnCours<>"" then
-- niveauSon
-- sound(1).play(member musEnCours)
-- end if
end
on laboOn
laboOK=1
sprite(pisteLabo).member = member("Micro0")
end
on laboOff
laboOK=0
sprite(pisteLabo).member = member("Micro2")
end
on interfaceOff
interLangues=0
gInterface=0
end
on interfaceOn
interlangues=1
gInterface=1
end